from flask import request
from server.nurse import problem_list_server
from api import problem_list_api

@problem_list_api.route('/read', methods=['GET'])
def read():
    result = problem_list_server.read()
    return result

# @problem_list_api.route('/delete', methods=['POST'])
# def delead():
#     data = request.json
#     result = problem_list_server.id_delete(data)
#     return result

# @problem_list_api.route('/add', methods=['POST'])
# def add():
#     data = request.json
#     result = problem_list_server.add(data)
#     return result

@problem_list_api.route('/update', methods=['POST'])
def update():
    data = request.json
    result = problem_list_server.update(data)
    return result
